import {
  request
} from '../requset'

/**
 * @description:  请求登录函数
 * @param {*} loginForm 需要登录的参数对象
 * @return {*}
 */
export function reqLogin(loginForm) {
  const {
    username,
    password,
    type
  } = loginForm
  return request({
    url: '/users/login',
    method: 'post',
    data: {
      username,
      password,
      type
    }
  })
}